// 引入knex.js模块
const knex = require('knex')({
    client: 'mysql',
    connection: {
        host: 'localhost',
        // host: '8.130.79.20',
        user: 'root',
        password: '123456',
        database: 'graduation_pro',
        pool: {
            min: 0,
            max: 120,
            acquireTimeoutMillis: 90000,
            idleTimeoutMillis: 200,
            evictionRunIntervalMillis: 1000
        }
    }
});
module.exports = knex
